import 'package:ceo_app/utills/http.dart';

class Api {
  static login(data) {
    return Request.post('/auth/login', data: data);
  }

  static register(data) {
    return Request.post('/user/create', data: data);
  }

  static getPostingList(Map<dynamic, int?> map, {Map? params}) {
    return Request.get('/posting/list', params: params);
  }

//获取圈子分类
  static getCateList({Map? params}) {
    return Request.get('/category/list');
  }

//发布帖子接口
  static postPuhlish(params) {
    return Request.post('/posting/add', data: params);
  }

// 个人中心接口
  static getUserInfo() {
    return Request.get('/auth/userInfo');
  }
}
